<html>
<?php include("../../MerchandiseBay/conn.php"); ?>
<head>
<?

$sql="select * from category order by category";
$qry=mysql_query($sql,$conn);
?>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Title</title>
</head>

<body bgcolor="#0066FF">



<div align="left">
  <table border="0" width="100%" id="table1">
    <tr>
      
      <td height="34" background="../mc/images/background/menuE.gif"> <div align="left"><font size="2" face="Verdana">&nbsp;<font size="4"><strong><font color="#FFFF00">List</font></strong></font></font><font color="#FFFF00" size="4"><strong> Category</strong></font><font size="4"> </font></div></td>
    </tr>
    <tr>
      <td>
        <table border="1" width="100%" bgcolor="#EEEEEE" style="border-collapse: collapse" bordercolor="#808080" id="table2">
          <tr>
            <td height="83">
              
  <table border="0" width="100%" id="table3">
    <tr>
      <td width="30" bgcolor="#333333"><strong><font color="#FFFFFF">No</font></strong></td>
	              <td width="675" bgcolor="#333333"><font color="#FFFFFF" size="2" face="Verdana"><strong>Category</strong></font></td>
	              <td width="484" bgcolor="#333333"><div align="center"><b> <font size="2" face="Verdana" color="#FFFFFF">&nbsp;Update</font></b></div></td>
	  </tr>
    <?
	$count=1;
	while($row=mysql_fetch_assoc($qry)){
	
	$d=$row['id'];
	?>
    <tr>
      <td width="30"><?=$count?></td>
		  <td><font size="2" face="Verdana">&nbsp;<?=$row['category']?></font></td>
		  <td width="484"><font size="2" face="Verdana">&nbsp;Edit&nbsp;
		    <a href="editCategory.php?d=<?=$d?>&m=<?=$row['category']?>"><img border="0" src="icon/note_edit.png" width="24" height="24"></a> / 
		    Delete
		    <a href="delete.php?d=<?=$d?>&t=category&kind=<?=$row['category']?>"><img border="0" src="icon/note_delete.png" width="24" height="24"></a></font></td>
	  </tr>
    <?
	$count=$count+1;
	}?>
    <tr>
      <td width="30">&nbsp;</td>
		  <td>&nbsp;</td>
		  <td width="484">&nbsp;</td>
	  </tr>
  </table>			  </td>
	      </tr>
        </table>	    </td>
    </tr>
    <tr>
      <td>
        <p align="center"><font face="Verdana" size="2"> 
        <a href="registerProduct.html" target="_self"><font color="#FFFFFF">Register Product</font></a> <font color="#FFFFFF">|</font> <a href="categoryForm.php" target="_self"><font color="#FFFFFF">Add Category</font></a> </font></td>
    </tr>
  </table>
</div>
</body>

</html>
